package com.cm.rpa.beans;

import java.awt.event.InputEvent;

/**
 * 鼠标按键枚举
 *
 * @author LWang 2023.01.28
 * @since 1.0.0
 */
public enum Button {
    /**
     * 左键
     */
    LEFT(InputEvent.BUTTON1_DOWN_MASK),
    /**
     * 中键
     */
    MIDDLE(InputEvent.BUTTON2_DOWN_MASK),
    /**
     * 右键
     */
    RIGHT(InputEvent.BUTTON3_DOWN_MASK);

    final int button;

    public int getButton() {
        return button;
    }

    Button(int button) {
        this.button = button;
    }
}
